package com.visual.echart.controller;

import com.visual.echart.model.BaseResp;
import com.visual.echart.model.HelloResp;
import com.visual.echart.model.HelloWorldVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 简介说明:测试controller
 *
 * @author: biboyuzhou
 * @date: 2025/06/14 18:17:48
 * @version:1.0
 */
@RestController
public class HelloWordController {

    @GetMapping("/hello")
    public HelloResp hello() {
        HelloResp helloResp = new HelloResp();
        helloResp.setSuccessData();
        HelloWorldVO helloWorldVO = new HelloWorldVO();
        helloWorldVO.setResult("hello world!");
        helloWorldVO.setUserId("11");
        helloResp.setHelloWorldVO(helloWorldVO);
        return helloResp;
    }

}
